import {
    HTTP
} from "../utils/http.js"
class TicketModel extends HTTP {
    checkCqVirtualGood(entityNum,innerOrgCode) {
        return this.request({
            url: 'program/antCouponService/checkCqVirtualGood',
            data: {
               entityNum,
               innerOrgCode
            },
            method: 'POST'
        })
    }
    loadTicket() {
        return this.request({
            url: 'program/antCouponService/getActivity',
            data: {
               Type: 1
            },
            method: 'POST'
        })
    }
    getTicket(ruleId){
        return this.request({
            url: 'program/antCouponService/sendCoupon',
            data: {
                ruleId
            },
            method: 'POST'
        })
    }
    loadMyticket(status,begin,num) {
        return this.request({
            url: 'program/antCouponService/getCqCouponList',
            data: {
              status,
              begin,
              num
            },
            method: 'POST'
        })
    }
    loadMyticket2() {
        return this.request({
            url: 'program/antCouponService/getCouponList',
            data: {},
            method: 'POST'
        })
    }
    loadUseRule(couponId) {
        return this.request({
            url: 'program/antCouponService/getCqCouponDetail',
            data:{
                couponId,
            },
            method: 'POST'
        })
    }
    loadUseRule2(couponId,ruleId) {
        return this.request({
            url: 'program/antCouponService/getActivityDescribe',
            data:{
                couponId,
                ruleId
            },
            method: 'POST'
        })
    }
}
export {
    TicketModel
}